package com.osdp.auth.api.impl;

import com.osdp.auth.api.ITokenApi;
import com.osdp.auth.server.ITokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TokenApiImpl implements ITokenApi {

    @Autowired
    private ITokenService tokenService;

    @Override
    public Boolean refresh(String token) {
        return tokenService.refresh(token);
    }

    @Override
    public boolean verify(String token) {
        return tokenService.verify(token);
    }
}
